package com.fast.model.result.common;

import lombok.Getter;

@Getter
public enum ResultCode implements StatusCode {
    SUCCESS(20000, "请求成功"),
    FAILED(10001, "请求失败"),
    VALIDATE_ERROR(10002, "参数校验失败"),
    RESPONSE_PACK_ERROR(10003, "response返回包装失败");

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
